Test Failed
Push — master ( db6889...9321a0 )
by Dmytro
01:41
created

CottusFormatError.setContext   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
1
export default class CottusFormatError extends Error {
2
    get hash() {
3
        return {
4
            value   : this.value,
5
            // path    : 'user.name',
6
            code    : this.code,
7
            message : this.message
8
        };
9
    }
10
11
    setContext(value) {
12
        this.value = value;
13
    }
14
}
15